package com.lineage.data.item_etcitem.wand;

import com.lineage.data.executor.ItemExecutor;
import com.lineage.server.model.Instance.L1ItemInstance;
import com.lineage.server.model.Instance.L1PcInstance;
import com.lineage.server.serverpackets.S_NPCTalkReturn;
import com.lineage.server.serverpackets.ServerBasePacket;

public class FollowPc_Item extends ItemExecutor {
  public static ItemExecutor get() {
    return new FollowPc_Item();
  }
  
  public void execute(int[] data, L1PcInstance _pc, L1ItemInstance item) {
    try {
      int i=0;
      String type1 = "尚未设置";
      String type2 = "0";
      String type3 = "禁止跟随";
      String type4 = "关闭";
      String type5 = "关闭";
      String type6 = "关闭";
      String type7 = "关闭";
      String type8 = "关闭";
      String type9 = "关闭";
      String type10 = "关闭";
      String type11 = "关闭";
      String type12 = "关闭";
      String type13 = "关闭";
      if (_pc.getfollowskilltype() == 0) {
        type1 = "尚未设置";
      } else if (_pc.getfollowskilltype() == 1) {
        type1 = "初级治愈术";
      } else if (_pc.getfollowskilltype() == 2) {
        type1 = "中级治愈术";
      } else if (_pc.getfollowskilltype() == 3) {
        type1 = "高级治愈术";
      } else if (_pc.getfollowskilltype() == 4) {
        type1 = "生命的祝福";
      } 
      if (_pc.getfollowskillhp() > 0)
        i = _pc.getfollowskillhp(); 
      if (_pc.isfollowcheck())
        type3 = "允许跟随"; 
      if (_pc.isfollowskill26())
        type4 = "开启"; 
      if (_pc.isfollowskill42())
        type5 = "开启"; 
      if (_pc.isfollowskill55())
        type6 = "开启"; 
      if (_pc.isfollowskill68())
        type7 = "开启"; 
      if (_pc.isfollowskill79())
        type8 = "开启"; 
      if (_pc.isfollowskill148())
        type9 = "开启"; 
      if (_pc.isfollowskill151())
        type10 = "开启"; 
      if (_pc.isfollowskill149())
        type11 = "开启"; 
      if (_pc.isfollowskill158())
        type12 = "开启"; 
      _pc.sendPackets((ServerBasePacket)new S_NPCTalkReturn(_pc.getId(), "Lh8", new String[] { 
              type1, i+"", type3, type4, type5, 
              type6, type7, type8, type9, type10, 
              type11, type12, "关闭" }));
    } catch (Exception exception) {}
  }
}
